Namespace - LJCNetCommon
Parameters
key - The key value.
Returns
The string config value.
Syntax
C# |
public static String ConfigString(String key)
|
Retrieves the Config string value. (RE)
Remarks
This uses the program config file which is the name of the program plus
the extension ".config".
// An example config file.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="ConnectionType" value="MySql" />
</appSettings>
</configuration>
Example
C# |
using LJCNetCommon;
string dbType = NetCommon.ConfigString("ConnectionType");
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.